package exception.test04;

public class Test04 {
    public static void main(String[] args) {
        Object[] o = new Object[100];
        MyStack myStack = new MyStack(o);
        try {
            myStack.push(new String[]{"1", "2", "3", "4"});
            myStack.push(new String[]{"5", "6", "7", "8"});
            myStack.push(new String[]{"9", "10", "11", "12"});
            myStack.push(new String[100]);
        }catch(MyStackOperationException e){
            e.printStackTrace();
        }
        System.out.println(myStack.elements[15]);
        System.out.println("============================");
        System.out.println(myStack.index);
        myStack.pop(99);
        System.out.println(myStack.elements[1]);
    }
}
